import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
// 导入Vuex
import store from 'store/index.js'
// 弹出层导入
import { Popup } from 'vant';

Vue.use(Popup);

//标签页导入
import { Tab, Tabs } from 'vant';

Vue.use(Tab);
Vue.use(Tabs);

//搜索框导入
import { Search } from 'vant';

Vue.use(Search);

// 商品导航栏注册
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant';

Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);

// 图标导入
import { Icon } from 'vant';

Vue.use(Icon);

import { AddressEdit } from 'vant';

Vue.use(AddressEdit);

import { Dialog } from 'vant';
// 全局注册
Vue.use(Dialog);

// 按钮导入
import { Button } from 'vant';

Vue.use(Button);

// 省市区
import { Area } from 'vant';

// 省市区
Vue.use(Area);


// 导航栏导入
import { Sidebar, SidebarItem } from 'vant';
import 'vant/lib/index.less'

import { NavBar } from 'vant';

Vue.use(NavBar);

// 消息提示导入
import { Notify } from 'vant';

Vue.use(Notify);

// 轮播图导入
import { Swipe, SwipeItem } from 'vant';
//复选框按钮
import { Checkbox, CheckboxGroup } from 'vant';

import { Stepper } from 'vant';


Vue.use(Stepper);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);

Vue.use(Sidebar)
Vue.use(SidebarItem)

Vue.use(Swipe)
Vue.use(SwipeItem)

Vue.config.productionTip = false
App.mpType = 'app'


const app = new Vue({
	store,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif